function getWeekTime(num) {
	var currentFirstDate;
	var formatDate = function(date) {
		var year = date.getFullYear() + '.';
		var month = (date.getMonth() + 1) < 10 ? '0' + (date.getMonth() + 1) + '.' : (date.getMonth() + 1) + '.';
		var day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
		return year + month + day;
	};

	var addDate = function(date, n) {
		date.setDate(date.getDate() + n);
		return date;
	};

	var setDate = function(date) {
		var week = date.getDay() - 1;
		date = addDate(date, week * -1);
		currentFirstDate = new Date(date);

		var arr = [];
		for (var i = 0; i < 7; i++) {
			var a = formatDate(i == 0 ? date : addDate(date, 1)); //星期一开始
			arr.push(a)
		}
		return arr;
	};
	setDate(new Date())
	return setDate(addDate(currentFirstDate, 7 * num));
}
export {
	getWeekTime
}
